import {defineStore} from "pinia";
const TAG_LIST_KEY = 'tabList'
export const useTabListStore = defineStore('tab-list', () => {
    // 得到tabList
    function getTabList() {
        return JSON.parse(sessionStorage.getItem(TAG_LIST_KEY))
    }

    function setTabList(obj) {
        sessionStorage.setItem(TAG_LIST_KEY, JSON.stringify(obj))
    }


    return {getTabList, setTabList}
})